/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cafe.DataObject;

/**
 *
 * @author root
 */
public class Food extends IdObject{
    
    private String name;
    private long price;
    
    private String categoricalId;

    public Food() {
        
    }
    
    public Food(String name, String categoricalId , long price) {
        this.categoricalId = categoricalId;
        this.name = name;
        this.price = price;
    }
    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the price
     */
    public long getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(long price) {
        this.price = price;
    }

    /**
     * @return the categoricalId
     */
    public String getCategoricalId() {
        return categoricalId;
    }

    /**
     * @param categoricalId the categoricalId to set
     */
    public void setCategoricalId(String categoricalId) {
        this.categoricalId = categoricalId;
    }
    
    public Object[] toObjectArray(){
        Object[] arr = new  Object[3] ;
        
        arr[0] = this.name;
        arr[1] = this.categoricalId;
        arr[2] = this.price;
        
        return arr;
    }
    
}
